package api.homework03;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionDemo {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add("1");
        c.add("2");
        c.add("3");
        c.add("4");
        c.add("5");
        System.out.println(c.size());
        System.out.println(c.isEmpty());
        boolean a = c.contains("1");
        System.out.println(a);
        c.remove("2");
        System.out.println(c);
        c.clear();
        System.out.println(c);


    }
}
